#include <QtCore/QCoreApplication>
#include <QDebug>
#include <QFile>
#include "grammar/python3/PythonGrammar30.h"
#include "grammar/python3/PythonGrammar30TokenManager.h"
#include "Object.h"
#include <QtTest/QtTest>
#include "TestParser.h"


/*int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QFile f("py.py");
    f.open(QIODevice::ReadOnly);
    QString data = f.readAll();
    f.close();

    CharStream stream(data, data.length(), 0, 0);
    PythonGrammar30TokenManager in(&stream);
    PythonGrammar30 *grammar = new PythonGrammar30(&in);

    modTypePtr newRoot = grammar->file_input();

    qDebug() << newRoot->toString();
    //foreach(Object* node, *newRoot->body())
    //    qDebug() << "\t" << node->toString();

    //delete newRoot;
    delete grammar;

    return 0;//a.exec();
}*/


QTEST_MAIN(TestParser)
